Spatial data showing land-use types and watersheds for all islands that make up the state of Hawaii have been provided by the Hawaii Statewide GIS Program. This report visualizes land-use and watershed data in multiple interactive maps. The first map shows land-use type across the state, and the total area covered by each land-use type (Figure 2.). The second map shows the location, area covered, and names of all watersheds in the state (Figure 3.) This report provides a visual analysis of unique spatial features in Hawaii.
RStudio packages for this analysis include: tidyverse, janitor, here, sf, tmap, mapview, and leaflet. All data analysis and visualization was produced using RStudio Version 1.2.1335.
Figure 1. Hawaiin Islands. Credit: Free World Maps
# Read in and look at data
land_use <- read_sf(dsn = here("content", "project", "spatial-project", "Land_Use_Land_Cover_LULC"), layer = "Land_Use_Land_Cover_LULC")
# Look at land-use specifically referring to only forested wetlands, estuaries and bays, and cropland/pastures
land_use_2 <- land_use %>%
select(landcover) %>%
rename(land_use = landcover) %>%
filter(land_use %in% c("Cropland and Pasture", "Forested Wetland", "Bays and Estuaries", "Commercial and Services", "Bare Exposed Rock", "Residential", "Shrub and Brush Rangeland"))
# plot(land_use)
land_use_map <- ggplot(data = land_use_2) +
geom_sf(aes(fill = land_use),
color = NA, show.legend = TRUE)
# tmap
landcover <- land_use %>%
select(landcover, st_areasha)
land_use_tmap <- tm_basemap("Hydda.Base") +
tm_shape(landcover) +
tm_fill(c("landcover", "st_areasha"), alpha = 1, legend.show = FALSE)
tmap_mode("view")
land_use_tmap